package com.seal.tsms.exam.entity;


import com.seal.tsms.base.entity.IdEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

/**
 * Created by 郝 on 2016/6/3.
 */
@Entity
@Table(name = "tb_Course")
public class Course extends IdEntity {

    private String name;

     private  Stage stage;

    @ManyToOne
    @JoinColumn(name = "stage_id")
    public Stage getStage() {
        return stage;
    }

    public void setStage(Stage stage) {
        this.stage = stage;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
